package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lh.common.annotation.ExcelExportRule;
import com.lh.common.annotation.ExcelFile;
import com.lh.common.enums.OrderStatusEnum;
import com.lh.common.enums.TrueFalseEnum;
import com.lh.common.enums.UserTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author FH
 * @ClassName: OrderList
 * @Description: (类作用)
 * @date: 2020-05-18 10:36
 */
@ExcelFile(titleName = "一元夺宝商品订单")
@Alias("orderOneList")
@Data
public class OrderOneList implements Serializable {

    @ApiModelProperty(value = "订单id")
    @TableField(value = "oid")
    @TableId
    private Long oid;

    @ApiModelProperty(value = "订单号")
    @ExcelExportRule(label = "订单号")
    private String orderItem;

    @ApiModelProperty(value = "订单时间")
    @ExcelExportRule(label = "订单时间")
    private String createTime;

    @ApiModelProperty(value = "订单状态  TOPAY:待付款; INPAY:支付中; TOSHIP:待发货; OUTSTOCK:已出库; SHIPED:已发货; COMPLETED:已完成;  CANCELLED:已取消; ACTIVITYLOSE:支付失败;REFUNDING:退款中;REFUNDED:完成退款")
    private OrderStatusEnum orderStatus;

    @ApiModelProperty(value = "期数")
    @ExcelExportRule(label = "期数")
    private String period;

    @ApiModelProperty(value = "活动名称")
    @ExcelExportRule(label = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "用户名")
    @ExcelExportRule(label = "用户名")
    private String name;

    @ApiModelProperty(value = "手机号")
    @ExcelExportRule(label = "手机号")
    private String phone;

    @ApiModelProperty(value = "用户类型 GENERAL:普通用户; ROBOT:机器人")
    private UserTypeEnum type;

    @ApiModelProperty(value = "开奖结果 TRUE:中奖; FALSE:未中奖")
    private TrueFalseEnum result;

    @ApiModelProperty(value = "商品名称")
    @ExcelExportRule(label = "商品名称")
    private String shopName;

    @ApiModelProperty(value = "购买次数")
    @ExcelExportRule(label = "购买次数")
    private int shopNum;

    @ApiModelProperty(value = "订单总金额")
    @ExcelExportRule(label = "订单总金额")
    private BigDecimal payPrice;

}
